package com.kqb.common.core.handler;

import com.kqb.common.core.enums.ResponseEnum;
import com.kqb.common.core.exception.ScException;
import com.kqb.common.core.utils.AjaxResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/**
 * @author 杉果树皮
 * @date 2025/4/12 16:14
 * @description:
 */
@RestControllerAdvice
@RestController
@Slf4j
public class DefaultExceptionHandler {


    @ExceptionHandler(ScException.class)
    public AjaxResult mall4cloudExceptionHandler(ScException e) {
        // TODO: 2025/4/12 统一异常处理结果
        return AjaxResult.error();

    }


}
